﻿
namespace TotalSystems.DataAccess.Store
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Objects.DataClasses;
    using System.Linq;
    //using System.ServiceModel.DomainServices.Hosting;
    //using System.ServiceModel.DomainServices.Server;


    // The MetadataTypeAttribute identifies STR_StoreMetadata as the class
    // that carries additional metadata for the STR_Store class.
    [MetadataTypeAttribute(typeof(STR_Store.STR_StoreMetadata))]
    public partial class STR_Store
    {

        // This class allows you to attach custom attributes to properties
        // of the STR_Store class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class STR_StoreMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private STR_StoreMetadata()
            {
            }

            public decimal ACC_Ac_ID_fk { get; set; }

            public ACC_AccountingCode ACC_AccountingCode { get; set; }

            public short ACC_Fy_ID_fk { get; set; }

            public EntityCollection<MER_MercantileDocument> MER_MercantileDocument { get; set; }

            public PUB_Customer PUB_Customer { get; set; }

            public PUB_Location PUB_Location { get; set; }

            public int PUB_Location_ID_fk { get; set; }

            public long PUB_Manager_ID_fk { get; set; }

            public long PUB_TechnicalAgent_ID_fk { get; set; }

            public decimal PUB_Tp_ID_fk { get; set; }

            public PUB_TypePlan PUB_TypePlan { get; set; }

            public int PUB_User_ID_fk { get; set; }

            public bool STR_Store_Active { get; set; }

            public string STR_Store_Address { get; set; }

            public string STR_Store_DeleteDate { get; set; }

            public string STR_Store_Fax { get; set; }

            public decimal STR_Store_ID { get; set; }

            public bool STR_Store_IsExpand { get; set; }

            public string STR_Store_ModifyDate { get; set; }

            public string STR_Store_Name { get; set; }

            public string STR_Store_Note { get; set; }

            public Nullable<int> STR_Store_Parent_ID_fk { get; set; }

            public string STR_Store_Situation { get; set; }

            public string STR_Store_StartDate { get; set; }

            public string STR_Store_Telephone { get; set; }

            public string STR_Store_Temp { get; set; }

            public Nullable<short> STR_Store_Type { get; set; }

            public string STR_Store_TypeMoney_fk { get; set; }

            public EntityCollection<STR_StoreDocument> STR_StoreDocument { get; set; }

            public EntityCollection<STR_StoreStuffPlus> STR_StoreStuffPlus { get; set; }

            public decimal STR_Ts_ID_fk { get; set; }

            public STR_TypeStore STR_TypeStore { get; set; }
        }
    }
}
